package com.gzhryc.weixin.api.event.msg.resp;

import com.gzhryc.common.xml.annotation.XmlElement;
import com.gzhryc.weixin.api.event.msg.IEventRespMessage;

/**
 * 音频格式的事件回复结构
 * @author 张浩
 * @version 0.2.0
 */
@XmlElement("xml")
public class VoiceRespMessage implements IEventRespMessage{

	@XmlElement
	private String ToUserName;
	@XmlElement
	private String FromUserName;
	@XmlElement
	private Long CreateTime;
	@XmlElement
	private String MsgType = "voice";
	@XmlElement
	private Voice Voice;
	
	public String getToUserName() {
		return ToUserName;
	}

	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}

	public String getFromUserName() {
		return FromUserName;
	}

	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}

	public Long getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(Long createTime) {
		CreateTime = createTime;
	}

	public String getMsgType() {
		return MsgType;
	}

	public void setMsgType(String msgType) {
		MsgType = msgType;
	}

	public Voice getVoice() {
		return Voice;
	}

	public void setVoice(Voice voice) {
		Voice = voice;
	}

	public static class Voice {
		
		@XmlElement
		private String MediaId;

		public String getMediaId() {
			return MediaId;
		}

		public void setMediaId(String mediaId) {
			MediaId = mediaId;
		}
	}
}
